﻿using System.Data;
using Microsoft.SqlServer.Types;
using MyFloridaHouse.LibDTO;

namespace MyFloridaHouse.DataAccess.Extensions
{
    public static class RegionShapeForReductionDTODataContract
    {
        public static RegionShapeForReductionDTO DataContract(IDataReader rdr)
        {
            RegionShapeForReductionDTO newItem = new RegionShapeForReductionDTO();
            newItem.regionID = (int)rdr["regionID"];
            newItem.mapGeog = (SqlGeography)rdr["mapGeog"];
            return (newItem);
        }

    }
}
